package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.RegionQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRegionService {

    void saveOrUpdate(Region region);

    PageInfo<Region> query(QueryObject qo);

    List<Region> queryByParentId(RegionQueryObject qo);

    void changeState(Region region);

    List<Region> queryAll(Integer state);
}
